@model ExpertSMS.Models.StoreToKitchenEntry
@{
    ExpertSMS.Models.Store store = (ExpertSMS.Models.Store)ViewBag.Store;
}
@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Date)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Date)
    @Html.ValidationMessageFor(model => model.Date)
</div>

<div class="editor-label">
    Store
</div>
<div class="editor-field">
    @Html.Encode(store.Name)
    @Html.HiddenFor(model => model.StoreID, store.StoreID)
    @Html.ValidationMessageFor(model => model.StoreID)
</div>
<div class="editor-label">
    Kitchen
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.KitchenID, ((IEnumerable<ExpertSMS.Models.Kitchen>)ViewBag.PossibleKitchens).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Name), 
        Value = option.KitchenID.ToString(),
        Selected = (Model != null) && (option.KitchenID == Model.KitchenID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.KitchenID)
</div>
